home *** CD-ROM | disk | FTP | other *** search
- global gStartPath
-
- on exitFrame
- gStartPath = the moviePath
- if FileExists(the moviePath & "DvCDOvrd.txt") <> 0 then
- if the machineType <> 256 then
- pathSep = ":"
- driveList = DrivesToList()
- else
- pathSep = "\"
- driveList = ["D:", "E:", "F:", "G:", "H:", "I:", "J:", "K:", "L:", "M:"]
- end if
- CDDrive = #NoCD
- repeat with driveName in driveList
- if DriveIsCDROM(driveName) = 0 then
- if FileExists(driveName & pathSep & "AWP_101.PIC") = 0 then
- CDDrive = driveName
- exit repeat
- end if
- end if
- end repeat
- if CDDrive = #NoCD then
- alert("Before you run GeoSafari Geography, you need to put the CD in.")
- quit()
- else
- add(the searchPath, CDDrive & pathSep & "movies")
- go(1, CDDrive & pathSep & "Geogrphy")
- end if
- else
- add(the searchPath, the moviePath & "movies")
- go(1, the moviePath & "Geogrphy")
- end if
- end
-